package com.project.bean;
/*
创建用户实体类 //列有：编号，用户名，密码，生日，电话
*/

import com.project.annotation.Column;
import com.project.annotation.Id;
import com.project.annotation.Table;

import java.time.LocalDate;

/**
 * 用户实体类
 */
@Table("t_user2")
public class UserBean {

    @Column("pk_userId")
    @Id
    /**用户编号*/
    private int id;
    @Column("u_userName")
    /**用户名*/
    private String userName;
    @Column("u_pwd")
    /**密码*/
    private String pwd;
    @Column("u_birthday")
    /**生日*/
    private LocalDate birthday;
    @Column("u_phone")
    /**电话*/
    private String phone;

    public UserBean() {
    }

    public UserBean(String userName, String pwd, LocalDate birthday, String phone) {
        this.userName = userName;
        this.pwd = pwd;
        this.birthday = birthday;
        this.phone = phone;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "UserBean{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", pwd='" + pwd + '\'' +
                ", birthday=" + birthday +
                ", phone='" + phone + '\'' +
                "}\n";
    }
}
